package widget.dress.mode
{
	import flash.display.Bitmap;

	public class ActionModel{
		public var action:uint = 99;
		public var direction:uint = 99;
		public var frame:uint = 99;
		public var bitmap:Bitmap = null;
		private var dataList:Vector.<ActionModel> = null;
		public function ActionModel()
		{
			
		}
		
		
		public function addModel(model:ActionModel):void
		{
			if(model == null) return;
			if(dataList == null){
				dataList = new Vector.<ActionModel>();
			}
			dataList.push(model);	
		}
		
		public function getModel(index:uint):ActionModel
		{
			if(dataList == null) return null;
			if(index < dataList.length){
				return dataList[index];
			}
			return null;
		}
		
		public function get dataLength():int
		{
			if(dataList)
				return dataList.length;
			else
				return 0;
		}
	}
}